import React, {Component} from "react";
import {Redirect} from 'react-router-dom'
import memoryUtils from "../../utils/memoryUtils";


export default class Admin extends Component {
    render() {

        let user = memoryUtils.user;
        if (!user || !user.username) {
            return <Redirect to='/login'/>
        }
        return (
            <div>Hello {user.username}</div>
        );
    }
}